package com.demo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 描述：SYS目标任务表
 *
 * @author agile generator
 */
@ToString
@Entity
@Table(name = "sys_api")
@NoArgsConstructor
@Setter
@Builder
@AllArgsConstructor
@EqualsAndHashCode
public class SysApiDo implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long sysApiId;
    private String businessCode;
    private String businessName;
    private String name;
    private Integer type;
    private String remarks;

    @Id
    @Column(name = "sys_api_id", length = 20, nullable = false)
    public Long getSysApiId() {
        return sysApiId;
    }

    @Basic
    @Column(name = "business_code", length = 20)
    public String getBusinessCode() {
        return businessCode;
    }

    @Basic
    @Column(name = "business_name", length = 400)
    public String getBusinessName() {
        return businessName;
    }

    @Column(name = "`name`")
    @Basic
    public String getName() {
        return name;
    }

    @Column(name = "type", length = 3)
    @Basic
    public Integer getType() {
        return type;
    }

    @Column(name = "remarks")
    @Basic
    public String getRemarks() {
        return remarks;
    }
}
